// ignore_for_file: must_be_immutable
part of '../fhare.dart';

ButtonStyle ButtonStyleStatium() {
  return ButtonStyleMaterial(shape: const StadiumBorder(), minimumSize: const Size(100, 48));
}

ButtonStyle ButtonStyleMaterial({
  TextStyle? textStyle,
  Color? backgroundColor,
  Color? foregroundColor,
  Color? overlayColor,
  Color? shadowColor,
  Color? surfaceTintColor,
  double? elevation,
  EdgeInsetsGeometry? padding,
  Size? minimumSize,
  Size? fixedSize,
  Size? maximumSize,
  Color? iconColor,
  double? iconSize,
  BorderSide? side,
  OutlinedBorder? shape,
  MouseCursor? mouseCursor,
  VisualDensity? visualDensity,
  MaterialTapTargetSize? tapTargetSize,
  Duration? animationDuration,
  bool? enableFeedback,
  AlignmentGeometry? alignment,
  InteractiveInkFeatureFactory? splashFactory,
}) {
  return ButtonStyle(
    textStyle: textStyle == null ? null : WidgetStateProperty.all(textStyle),
    backgroundColor: backgroundColor == null ? null : WidgetStateProperty.all(backgroundColor),
    foregroundColor: foregroundColor == null ? null : WidgetStateProperty.all(foregroundColor),
    overlayColor: overlayColor == null ? null : WidgetStateProperty.all(overlayColor),
    shadowColor: shadowColor == null ? null : WidgetStateProperty.all(shadowColor),
    surfaceTintColor: surfaceTintColor == null ? null : WidgetStateProperty.all(surfaceTintColor),
    elevation: elevation == null ? null : WidgetStateProperty.all(elevation),
    padding: padding == null ? null : WidgetStateProperty.all(padding),
    minimumSize: minimumSize == null ? null : WidgetStateProperty.all(minimumSize),
    fixedSize: fixedSize == null ? null : WidgetStateProperty.all(fixedSize),
    maximumSize: maximumSize == null ? null : WidgetStateProperty.all(maximumSize),
    iconColor: iconColor == null ? null : WidgetStateProperty.all(iconColor),
    iconSize: iconSize == null ? null : WidgetStateProperty.all(iconSize),
    side: side == null ? null : WidgetStateProperty.all(side),
    shape: shape == null ? null : WidgetStateProperty.all(shape),
    mouseCursor: mouseCursor == null ? null : WidgetStateProperty.all(mouseCursor),
    visualDensity: visualDensity,
    tapTargetSize: tapTargetSize,
    animationDuration: animationDuration,
    enableFeedback: enableFeedback,
    alignment: alignment,
    splashFactory: splashFactory,
  );
}
